<!DOCTYPE html>
<html>
<head>
  <title>GroupNavigation</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>

  <%= csrf_meta_tags %>
</head>
<body class="container">
<div id="header">
  <%= yield :header %>
</div>
<hr>
<% unless flash[:notice].nil? then %>
    <div class="alert alert-info"><%= flash[:notice] %>
      <button type="button" class="close" data-dismiss="alert">×</button>
    </div>
<% end %>
<% unless flash[:error].nil? then %>
    <div class="alert alert-error"><%= flash[:error] %>
      <button type="button" class="close" data-dismiss="alert">×</button>
    </div>
<% end %>
<% unless flash[:header].nil? then %>
    <div class="alert alert-success"><%= flash[:header] %>
      <button type="button" class="close" data-dismiss="alert">×</button>
    </div>
<% end %>
<% unless flash[:media].nil? then %>
    <div class="alert alert-success"><%= flash[:media] %>
      <button type="button" class="close" data-dismiss="alert">×</button>
    </div>
<% end %>
<div id="content">
  <div class="row">
    <% if user_signed_in? %>
        <div id="left-side" class="span3">

        </div>
        <div id="main-block" class="span9">
          <%= yield %>
        </div>
    <% else %>
        <div id="main-block" class="span8 offset2">
          <%= yield %>
        </div>
    <% end %>

  </div>
</div>
<div id="footer"></div>


</body>
</html>

